package com.congwulin.wechat;

/**
 * created by sunliangliang
 * 真实处理业务的类，实现代理接口
 */
public class RealSubject implements Subject{
    @Override
    public void dealTask(String taskName) {
        System.out.println("--------【正在处理任务1】-------");
        try {
            //休眠5s，模拟处理业务时间
            Thread.sleep(1000*5);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }
}
